﻿using System;


namespace Commons.Models.TradeValues
{
	[Serializable]
	public class CostStatus
	{
		public ITradeValue TradeValue { get; private set; }
		public int MissingQuantity { get; private set; }

		public CostStatus(ITradeValue tradeValue, int missingQuantity)
		{
			this.TradeValue = tradeValue;
			this.MissingQuantity = missingQuantity;
		}

		public bool IsAccomplish()
		{
			return MissingQuantity == 0;
		}

		public override string ToString()
		{
			return string.Format ("[CostStatus: TradeValue={0}, MissingQuantity={1}]", TradeValue, MissingQuantity);
		}
	}
}
